package deadlock1;

import java.util.HashMap;
import java.util.Map;

public class MyParent {

    private static final Map<String, Class<?>> REGISTRY = new HashMap<>();

    static {
        try {
            // 为了确保死锁可以稳定复现，增加一个 sleep
            Thread.sleep(1000);
            REGISTRY.put("cc", Class.forName("deadlock1.MyChild"));
        } catch (Exception ignore) {
        }
    }
}
